#ifndef __FONT_H
#define __FONT_H

#include <stdint.h>  // 确保 uint8_t 类型可用

/* OLED字模库，宽8像素，高16像素 */
static const uint8_t OLED_F8x16[][16] = 
{
    {   // 1 (空格)
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
    },
    {   // 2 (!)
        0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x33,0x30,0x00,0x00,0x00
    },
    {   // 3 (")
        0x00,0x10,0x0C,0x06,0x10,0x0C,0x06,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
    },
    {   // 4 (#)
        0x40,0xC0,0x78,0x40,0xC0,0x78,0x40,0x00,
        0x04,0x3F,0x04,0x04,0x3F,0x04,0x04,0x00
    },
    {   // 5 ($)
        0x00,0x70,0x88,0xFC,0x08,0x30,0x00,0x00,
        0x00,0x18,0x20,0xFF,0x21,0x1E,0x00,0x00
    },
    {   // 6 (%)
        0xF0,0x08,0xF0,0x00,0xE0,0x18,0x00,0x00,
        0x00,0x21,0x1C,0x03,0x1E,0x21,0x1E,0x00
    },
    {   // 7 (&)
        0x00,0xF0,0x08,0x88,0x70,0x00,0x00,0x00,
        0x1E,0x21,0x23,0x24,0x19,0x27,0x21,0x10
    },
    {   // 8 (')
        0x10,0x16,0x0E,0x00,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
    },
    {   // 9 (()
        0x00,0x00,0x00,0xE0,0x18,0x04,0x02,0x00,
        0x00,0x00,0x00,0x07,0x18,0x20,0x40,0x00
    },
    {   // 10 ())
        0x00,0x02,0x04,0x18,0xE0,0x00,0x00,0x00,
        0x00,0x40,0x20,0x18,0x07,0x00,0x00,0x00
    },
    {   // 11 (*)
        0x40,0x40,0x80,0xF0,0x80,0x40,0x40,0x00,
        0x02,0x02,0x01,0x0F,0x01,0x02,0x02,0x00
    },
    {   // 12 (+)
        0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,
        0x01,0x01,0x01,0x1F,0x01,0x01,0x01,0x00
    },
    {   // 13 (,)
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x80,0xB0,0x70,0x00,0x00,0x00,0x00,0x00
    },
    {   // 14 (-)
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01
    },
    {   // 15 (.)
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00
    },
    {   // 16 (/)
        0x00,0x00,0x00,0x00,0x80,0x60,0x18,0x04,
        0x00,0x60,0x18,0x06,0x01,0x00,0x00,0x00
    },
    {   // 17 (0)
        0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,
        0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00
    },
    {   // 18 (1)
        0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,
        0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00
    },
    {   // 19 (2)
        0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,
        0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00
    },
    {   // 20 (3)
        0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,
        0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00
    },
    {   // 21 (4)
        0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,
        0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00
    },
    {   // 22 (5)
        0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,
        0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00
    },
    {   // 23 (6)
        0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,
        0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00
    },
    {   // 24 (7)
        0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,
        0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00
    },
    {   // 25 (8)
        0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,
        0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00
    },
    {   // 26 (9)
        0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,
        0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00
    },
    {   // 27 (:)
        0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,
        0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00
    },
    {   // 28 (;)
        0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
        0x00,0x00,0x80,0x60,0x00,0x00,0x00,0x00
    },
    {   // 29 (<)
        0x00,0x00,0x80,0x40,0x20,0x10,0x08,0x00,
        0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x00
    },
    {   // 30 (=)
        0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00,
        0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x00
    },
    {   // 31 (>)
        0x00,0x08,0x10,0x20,0x40,0x80,0x00,0x00,
        0x00,0x20,0x10,0x08,0x04,0x02,0x01,0x00
    },
    {   // 32 (?)
        0x00,0x70,0x48,0x08,0x08,0x08,0xF0,0x00,
        0x00,0x00,0x00,0x30,0x36,0x01,0x00,0x00
    },
    {   // 33 (@)
        0xC0,0x30,0xC8,0x28,0xE8,0x10,0xE0,0x00,
        0x07,0x18,0x27,0x24,0x23,0x14,0x0B,0x00
    },
    {   // 34 (A)
        0x00,0x00,0xC0,0x38,0xE0,0x00,0x00,0x00,
        0x20,0x3C,0x23,0x02,0x02,0x27,0x38,0x20
    },
    {   // 35 (B)
        0x08,0xF8,0x88,0x88,0x88,0x70,0x00,0x00,
        0x20,0x3F,0x20,0x20,0x20,0x11,0x0E,0x00
    },
    {   // 36 (C)
        0xC0,0x30,0x08,0x08,0x08,0x08,0x38,0x00,
        0x07,0x18,0x20,0x20,0x20,0x10,0x08,0x00
    },
    {   // 37 (D)
        0x08,0xF8,0x08,0x08,0x08,0x10,0xE0,0x00,
        0x20,0x3F,0x20,0x20,0x20,0x10,0x0F,0x00
    },
    {   // 38 (E)
        0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,
        0x20,0x3F,0x20,0x20,0x23,0x20,0x18,0x00
    },
    {   // 39 (F)
        0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,
        0x20,0x3F,0x20,0x00,0x03,0x00,0x00,0x00
    },
    {   // 40 (G)
        0xC0,0x30,0x08,0x08,0x08,0x38,0x00,0x00,
        0x07,0x18,0x20,0x20,0x22,0x1E,0x02,0x00
    },
    {   // 41 (H)
        0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,
        0x20,0x3F,0x21,0x01,0x01,0x21,0x3F,0x20
    },
    {   // 42 (I)
        0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0x00,
        0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00
    },
    {   // 43 (J)
        0x00,0x00,0x08,0x08,0xF8,0x08,0x08,0x00,
        0xC0,0x80,0x80,0x80,0x7F,0x00,0x00,0x00
    },
    {   // 44 (K)
        0x08,0xF8,0x88,0xC0,0x28,0x18,0x08,0x00,
        0x20,0x3F,0x20,0x01,0x26,0x38,0x20,0x00
    },
    {   // 45 (L)
        0x08,0xF8,0x08,0x00,0x00,0x00,0x00,0x00,
        0x20,0x3F,0x20,0x20,0x20,0x20,0x30,0x00
    },
    {   // 46 (M)
        0x08,0xF8,0xF8,0x00,0xF8,0xF8,0x08,0x00,
        0x20,0x3F,0x00,0x3F,0x00,0x3F,0x20,0x00
    },
    {   // 47 (N)
        0x08,0xF8,0x30,0xC0,0x00,0x08,0xF8,0x08,
        0x20,0x3F,0x20,0x00,0x07,0x18,0x3F,0x00
    },
    {   // 48 (O)
        0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,
        0x0F,0x10,0x20,0x20,0x20,0x10,0x0F,0x00
    },
    {   // 49 (P)
        0x08,0xF8,0x08,0x08,0x08,0x08,0xF0,0x00,
        0x20,0x3F,0x21,0x01,0x01,0x01,0x00,0x00
    },
    {   // 50 (Q)
        0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,
        0x0F,0x18,0x24,0x24,0x38,0x50,0x4F,0x00
    },
    {   // 51 (R)
        0x08,0xF8,0x88,0x88,0x88,0x88,0x70,0x00,
        0x20,0x3F,0x20,0x00,0x03,0x0C,0x30,0x20
    },
    {   // 52 (S)
        0x00,0x70,0x88,0x08,0x08,0x08,0x38,0x00,
        0x00,0x38,0x20,0x21,0x21,0x22,0x1C,0x00
    },
    {   // 53 (T)
        0x18,0x08,0x08,0xF8,0x08,0x08,0x18,0x00,
        0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00
    },
    {   // 54 (U)
        0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,
        0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00
    },
    {   // 55 (V)
        0x08,0x78,0x88,0x00,0x00,0xC8,0x38,0x08,
        0x00,0x00,0x07,0x38,0x0E,0x01,0x00,0x00
    },
    {   // 56 (W)
        0xF8,0x08,0x00,0xF8,0x00,0x08,0xF8,0x00,
        0x03,0x3C,0x07,0x00,0x07,0x3C,0x03,0x00
    },
    {   // 57 (X)
        0x08,0x18,0x68,0x80,0x80,0x68,0x18,0x08,
        0x20,0x30,0x2C,0x03,0x03,0x2C,0x30,0x20
    },
    {   // 58 (Y)
        0x08,0x38,0xC8,0x00,0xC8,0x38,0x08,0x00,
        0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00
    },
    {   // 59 (Z)
        0x10,0x08,0x08,0x08,0xC8,0x38,0x08,0x00,
        0x20,0x38,0x26,0x21,0x20,0x20,0x18,0x00
    },
    {   // 60 ([)
        0x00,0x00,0x00,0xFE,0x02,0x02,0x02,0x00,
        0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x00
    },
    {   // 61 (\)
        0x00,0x0C,0x30,0xC0,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x01,0x06,0x38,0xC0,0x00
    },
    {   // 62 (])
        0x00,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,
        0x00,0x40,0x40,0x40,0x7F,0x00,0x00,0x00
    },
    {   // 63 (^)
        0x00,0x00,0x04,0x02,0x02,0x02,0x04,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
    },
    {   // 64 (_)
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
        0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80
    },
    {   // 65 (`)
        0x00,0x02,0x02,0x04,0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
    },
    {   // 66 (a)
        0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,
        0x00,0x19,0x24,0x22,0x22,0x22,0x3F,0x20
    },
    {   // 67 (b)
        0x08,0xF8,0x00,0x80,0x80,0x00,0x00,0x00,
        0x00,0x3F,0x11,0x20,0x20,0x11,0x0E,0x00
    },
    {   // 68 (c)
        0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
        0x00,0x0E,0x11,0x20,0x20,0x20,0x11,0x00
    },
    {   // 69 (d)
        0x00,0x00,0x00,0x80,0x80,0x88,0xF8,0x00,
        0x00,0x0E,0x11,0x20,0x20,0x10,0x3F,0x20
    },
    {   // 70 (e)
        0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,
        0x00,0x1F,0x22,0x22,0x22,0x22,0x13,0x00
    },
    {   // 71 (f)
        0x00,0x80,0x80,0xF0,0x88,0x88,0x88,0x18,
        0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00
    },
    {   // 72 (g)
        0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,
        0x00,0x6B,0x94,0x94,0x94,0x93,0x60,0x00
    },
    {   // 73 (h)
        0x08,0xF8,0x00,0x80,0x80,0x80,0x00,0x00,
        0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20
    },
    {   // 74 (i)
        0x00,0x80,0x98,0x98,0x00,0x00,0x00,0x00,
        0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00
    },
    {   // 75 (j)
        0x00,0x00,0x00,0x80,0x98,0x98,0x00,0x00,
        0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00
    },
    {   // 76 (k)
        0x08,0xF8,0x00,0x00,0x80,0x80,0x80,0x00,
        0x20,0x3F,0x24,0x02,0x2D,0x30,0x20,0x00
    },
    {   // 77 (l)
        0x00,0x08,0x08,0xF8,0x00,0x00,0x00,0x00,
        0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00
    },
    {   // 78 (m)
        0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,
        0x20,0x3F,0x20,0x00,0x3F,0x20,0x00,0x3F
    },
    {   // 79 (n)
        0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,
        0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20
    },
    {   // 80 (o)
        0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,
        0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00
    },
    {   // 81 (p)
        0x80,0x80,0x00,0x80,0x80,0x00,0x00,0x00,
        0x80,0xFF,0xA1,0x20,0x20,0x11,0x0E,0x00
    },
    {   // 82 (q)
        0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x00,
        0x00,0x0E,0x11,0x20,0x20,0xA0,0xFF,0x80
    },
    {   // 83 (r)
        0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x00,
        0x20,0x20,0x3F,0x21,0x20,0x00,0x01,0x00
    },
    {   // 84 (s)
        0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,
        0x00,0x33,0x24,0x24,0x24,0x24,0x19,0x00
    },
    {   // 85 (t)
        0x00,0x80,0x80,0xE0,0x80,0x80,0x00,0x00,
        0x00,0x00,0x00,0x1F,0x20,0x20,0x00,0x00
    },
    {   // 86 (u)
        0x80,0x80,0x00,0x00,0x00,0x80,0x80,0x00,
        0x00,0x1F,0x20,0x20,0x20,0x10,0x3F,0x20
    },
    {   // 87 (v)
        0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,
        0x00,0x01,0x0E,0x30,0x08,0x06,0x01,0x00
    },
    {   // 88 (w)
        0x80,0x80,0x00,0x80,0x00,0x80,0x80,0x80,
        0x0F,0x30,0x0C,0x03,0x0C,0x30,0x0F,0x00
    },
    {   // 89 (x)
        0x00,0x80,0x80,0x00,0x80,0x80,0x80,0x00,
        0x00,0x20,0x31,0x2E,0x0E,0x31,0x20,0x00
    },
    {   // 90 (y)
        0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,
        0x80,0x81,0x8E,0x70,0x18,0x06,0x01,0x00
    },
    {   // 91 (z)
        0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x00,
        0x00,0x21,0x30,0x2C,0x22,0x21,0x30,0x00
    },
    {   // 92 ({)
        0x00,0x00,0x00,0x00,0x80,0x7C,0x02,0x02,
        0x00,0x00,0x00,0x00,0x00,0x3F,0x40,0x40
    },
    {   // 93 (|)
        0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00
    },
    {   // 94 (})
        0x00,0x02,0x02,0x7C,0x80,0x00,0x00,0x00,
        0x00,0x40,0x40,0x3F,0x00,0x00,0x00,0x00
    }
};

#endif /* __FONT_H */
